#coding=utf-8
#!/usr/bin/python
# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
# See LICENSE for details.  wxPython2.8-win32-unicode-2.8.11.0-py26.exe
# cd /d D:\python2.6.6\dev_test 
# ..\python.exe wxp_icon_ez.py


import wx
import string
import sys


class App(wx.App):
    def OnInit(self):
        frame = wx.Frame(parent=None, title='Bare')
        frame.Show()
        icon=wx.EmptyIcon()   
        icon.LoadFile("ICO.ICO",wx.BITMAP_TYPE_ICO)   
        frame.SetIcon(icon)
        frame.tbicon=wx.TaskBarIcon()   
        frame.tbicon.SetIcon(icon,"wxPython Demo")   
        return True
        
app = App()
app.MainLoop()